package database;

/*
 * Coordinate.java
 *@Author James Metting
 * Stores the x,y,z values for a coordinate
 */

import java.io.*;
public class Coordinate implements Serializable{

    //change if float is unnessary
    float x;
    float y;
    float z;
    int index;
    /** Creates a new instance of Coordinate */
    public Coordinate(float x, float y,float z)
    {
        setCoordinate(x,y,z);
        this.index=0;
    }

    public void setX(float x)
    {
        this.x = x;
    }

    public void setY(float y)
    {
        this.y = y;
    }
    public void setZ(float z)
    {
        this.z = z;
    }

    public void setCoordinate(float x, float y, float z)
    {
        this.x = x;
        this.y = y;
        this.z = z;
    }

    public float getX()
    {
        return x;
    }

    public float getY()
    {
        return y;
    }
    public float getZ()
    {
    	return z;
    }
}
